package org.opendev.app.navybattle.domain;

import javax.persistence.Entity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import org.springframework.roo.addon.entity.RooEntity;
import org.opendev.app.navybattle.domain.Location;
import javax.persistence.ManyToOne;
import javax.persistence.JoinColumn;
import org.opendev.app.navybattle.domain.ShipType;

@Entity
@RooJavaBean
@RooToString
@RooEntity
public class Ship {

    @ManyToOne(targetEntity = Location.class)
    @JoinColumn
    private Location location;

    @ManyToOne(targetEntity = ShipType.class)
    @JoinColumn
    private ShipType type;
}
